<%@ page contentType="text/html;charset=utf-8" isELIgnored="false" %>
<%@ include file="/head.jsp" %>

<html>
	<head><title>报销</title>
	<style>
td {
font-size:12px;
height: 25px;
}
</style></head>
<script>
	function submitForm(){
		 alert("OK....");
		 return false;
	}
	function showShootPage(){
		 var imagepaths = window.showModalDialog("${ctx}/work/yinfeng/camera/shoot.jsp");
		 alert( "image path :" + imagepaths );
	}
	function showComponetPage(){
		 var imagepaths = window.showModalDialog("${ctx}/work/yinfeng/camera/example.htm");
		 alert( "image path :" + imagepaths );
	}
	
	function sessionView(){
		  //var lastVisitTime = Ext.util.Cookies.get("app_last_visit_time");
		  var cp = new Ext.state.CookieProvider();     
      var lastVisitTime=cp.get('app_last_visit_time'); 
		  if( lastVisitTime == null ){
		  	  top.location.href = "${ctx}/index.html";		  	   
      }
	}
	//setInterval(sessionView,600000);
	/*
	Ext.onReady(function(){
		
		
		var aWeek=['星期天','星期一','星期二','星期三','星期四','星期五','星期六'];
    var clock = new Ext.Toolbar.TextItem(new Date().format('Y-m-d G:i:s A')+'  '+aWeek[new Date().getDay()]);
		//定期更新时间
		Ext.TaskMgr.start({
		  run: function(){
		        Ext.fly(clock.getEl()).update(new Date().format('Y-m-d G:i:s A')+'  '+aWeek[new Date().getDay()]);
		  },
		  interval: 1000
		});
		
		var toolbar = new Ext.toolbar.Toolbar({//创建工具栏  
            id:'menutool',
            renderTo:'toolbar',  
            width:200,  
            
            items :[
               clock  
            ]
    });

	});  */
	</script>
	<body>
		<div id='toolbar' style="height:20px;" ></div>
		<br><br>
		<form action="${ctx}/work/yinfeng/camera/server.jsp" method="post" name="baoxiao" >
		<table bgcolor="#CCCCCC" width="580" border="0" align=center cellpadding="2" cellspacing="1">
			<tr><td style="width:30%;background:#EFEFEF;">报销人</td><td style="background:#EFEFEF;"><input type="text" name="personname" style="border:1px #CCC solid; width:180px;" /></td></tr>
			<tr><td style="width:30%;background:#EFEFEF;">报销单位</td><td style="background:#EFEFEF;"><input type="text" name="company" style="border:1px #CCC solid; width:180px;" /></td></tr>
			<tr><td style="width:30%;background:#EFEFEF;">报销事项</td><td style="background:#EFEFEF;"><input type="text" name="item" style="border:1px #CCC solid; width:180px;" /></td></tr>
			<tr><td style="width:30%;background:#EFEFEF;">报销金额</td><td style="background:#EFEFEF;"><input type="text" name="money" style="border:1px #CCC solid; width:180px;" /></td></tr>
			<tr><td style="width:30%;background:#EFEFEF;">报销附件</td><td style="background:#EFEFEF;"><input type="file" id="attachment" name="attachment" style="border:1px #CCC solid; width:180px;" />&nbsp;
				<button style="width:60px;height:20px;" onclick="showShootPage()">拍照</button>
				<button style="width:60px;height:20px;" onclick="showComponetPage()">测试</button></td>
			</tr>
			<tr>
          <td style="background:#EFEFEF; padding:3px 0;text-align:center;" valign="bottom" colspan="12" ><button style="width:60px;height:20px;" onclick="submitForm()">提交</button></td>
      </tr>
			</table>
			</form>
<br><br>
        <table bgcolor="#CCCCCC" width="780" border="0" align=center cellpadding="2" cellspacing="1">
          <tr>
            <td style="background:#EFEFEF;" rowspan="2">主机</td>
            <td style="background:#EFEFEF;" colspan="2">带宽</td>
            <td style="background:#EFEFEF;" colspan="5">攻击频率</td>
            <td style="background:#EFEFEF;" colspan="2">连接</td>
            <td style="background:#EFEFEF;" rowspan="2">防护状态</td>
            <td style="background:#EFEFEF;" rowspan="2">设置</td>
          </tr>
          <tr>
            <td style="background:#EFEFEF;">IN</td>
            <td style="background:#EFEFEF;">OUT</td>
            <td style="background:#EFEFEF;">SYN</td>
            <td style="background:#EFEFEF;">UDP</td>
            <td style="background:#EFEFEF;">ICMP</td>
            <td style="background:#EFEFEF;">碎片</td>
            <td style="background:#EFEFEF;">其他</td>
            <td style="background:#EFEFEF;">IN</td>
            <td style="background:#EFEFEF;">OUT</td>
          </tr>
          <tr>
            <td style="background:#FFFFFF;">本地主机</td>
            <td style="background:#FFFFFF;">971M</td>
            <td style="background:#FFFFFF;">0.00M</td>
            <td style="background:#FFFFFF;">1488597</td>
            <td style="background:#FFFFFF;">1</td>
            <td style="background:#FFFFFF;">0</td>
            <td style="background:#FFFFFF;">0</td>
            <td style="background:#FFFFFF;">0</td>
            <td style="background:#FFFFFF;">0</td>
            <td style="background:#FFFFFF;">13</td>
            <td style="background:#FFFFFF;">[SYN]</td>
            <td style="background:#FFFFFF;">点击设置</td>
          </tr>
          <tr>
            <td style="background:#FFFFFF;">本地主机</td>
            <td style="background:#FFFFFF;">971M</td>
            <td style="background:#FFFFFF;">0.00M</td>
            <td style="background:#FFFFFF;">1488597</td>
            <td style="background:#FFFFFF;">1</td>
            <td style="background:#FFFFFF;">0</td>
            <td style="background:#FFFFFF;">0</td>
            <td style="background:#FFFFFF;">0</td>
            <td style="background:#FFFFFF;">0</td>
            <td style="background:#FFFFFF;">13</td>
            <td style="background:#FFFFFF;">[SYN]</td>
            <td style="background:#FFFFFF;">点击设置</td>
          </tr>
          <tr>
            <td style="background:#FFFFFF;">本地主机</td>
            <td style="background:#FFFFFF;">971M</td>
            <td style="background:#FFFFFF;">0.00M</td>
            <td style="background:#FFFFFF;">1488597</td>
            <td style="background:#FFFFFF;">1</td>
            <td style="background:#FFFFFF;">0</td>
            <td style="background:#FFFFFF;">0</td>
            <td style="background:#FFFFFF;">0</td>
            <td style="background:#FFFFFF;">0</td>
            <td style="background:#FFFFFF;">13</td>
            <td style="background:#FFFFFF;">[SYN]</td>
            <td style="background:#FFFFFF;">点击设置</td>
          </tr>
          <tr>
            <td style="background:#EFEFEF; padding:3px 0;" valign="bottom" colspan="12" ><strong>网络地址设置</strong> 
            	网络地址（网关）：<input style="border:1px #CCC solid; width:180px;" />
              子网掩码： <input style="border:1px #CCC solid; width:180px;" /></td>
          </tr>
        </table>

		
	</body>
	
</html>